package com.mmp.main.servlet.systemsettings;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mmp.common.servlet.BasicServlet;
import com.mmp.main.entity.Hospital;

public class HospitalProfileDisplayServlet extends BasicServlet {

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("hospitalProfile", getHospitalBean(request));
		forward(request, response, "systemsettings/HospitalProfile.jsp");
	}

	private Hospital getHospitalBean(HttpServletRequest request) {
		
		return getSessionUser(request).getHospital();
/*		Hospital hosp = dbm.findById(1, Hospital.class);
		dbm.destory();
		return hosp;*/
	}
}
